package com.yz.food.dao;

import com.yz.food.pojo.Food;

import java.util.List;

public interface FoodMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Food record);

    int insertSelective(Food record);

    Food selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Food record);

    int updateByPrimaryKey(Food record);

    List<Food> getAll(Integer categoryId);

    List<Food> getByHot();

    List<Food> findFood(String foodName);

    List<Food> getByUpdateTime();
}